import type { Router } from 'vue-router'
import { createPageLoadingGuard } from './PageLoadingGuard'
import { createPermissionGuard } from '@/router/guard/permissionGuard'

export function setupRouterGuard(router: Router) {
    createPageLoadingGuard(router)
    createPermissionGuard(router)
}
